﻿<cfscript>
/** 
* DataBase Frameworks - Sequence
* 
* @hint "DataBase Frameworks - Sequence - QuestionRespondent" 
*/ 

component 
	displayname="public.service.db.senate.sequence.QuestionRespondent" 
	output=false 
	accessors=true 
	{

	property type="string" name="studentID" hint="学号";
	property type="string" name="questionID" hint="问卷号";
	
	/**
	* @hint "初始化对象"
	*/
	public function init() output=false {
		return this;
	}
	
	/**
	* @hint "自定义主键规则"
	*/
	public string function getID() output=false {
		
		var nextID = getQuestionId() & "," & getStudentID();

		/* 
			主键生成规则 
			
			调查对象编号30位 8位调查问卷编号 , 20位学号

			Unique: qsn_id, stu_id
		*/
		return nextID;
	}

}

</cfscript>